package com.example.vue_serve.dao;

import com.example.vue_serve.entity.TbGoods;
import com.example.vue_serve.entity.TbUser;
import com.example.vue_serve.entity.TbUserInfo;
import com.example.vue_serve.entity.TbWendu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TbUserDAO {
    List<TbUser> findAll();

    int add(TbUser user);

    int updateUser(TbUser user);

    int delUser(int id);

    List<TbUser> queryByName(TbUser user);

    List<TbUser> queryLikeName(TbUser user);

    List<TbUser> queryByTiaojian(TbUser user);

    TbUserInfo login(TbUserInfo userInfo);

    List<TbUser> findAllFenye(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize);

    List<TbWendu> findAllWendu();

    List<TbGoods> findAllGoodsByType(@Param("type") int type);
}
